﻿/**
 * ...
 * @author 
 */

package tab;

import list.SearchPanel;
import list.AddItems;
import list.NewList;
import list.MailList;
import list.OpenTabEvent;
import loader.Loader;
import client.ReceivedItem;
import gui.hug.Tab;
import list.ImageLoader;


class MailTab extends Tab
{
	private static inline var NAME = "Почта";
	
	private var loader : Loader;
	private var itemsList : MailList;
		
	
	public function new(items : Array<ReceivedItem>) 
	{
		itemsList = new MailList();
		for (item in items) {
			itemsList.addReceivedItem(item,item.getSender());
		}
		super(itemsList, NAME, 1);
	}
	
}